import request from '@/utils/request'
/**
 * 获取类型
 * @param {*} query 
 * @returns 
 */
export function getCategory() {
  return request({
    url: '/ms/category/categorylistinquire',
    method: 'get',
  })
}
/**
 * 添加类型
 * @param {*} query 
 * @returns 
 */
export function addCategory(data) {
  return request({
    url: '/ms/category/categoryadd',
    method: 'post',
    data: data
  })
}
/**
 * 修改类型
 * @param {*} query 
 * @returns 
 */
export function updateCategory(data) {
  return request({
    url: '/ms/category/categoryupdate',
    method: 'put',
    data: data
  })
}
/**
 * 删除类型
 * @param {*} query 
 * @returns 
 */
export function delCategory(categoryId) {
  return request({
    url: '/ms/category/categorydelete/' + categoryId,
    method: 'delete'
  })
}